﻿@inherits BaseComponent

@if (Visible)
{
    var text = GetText();
    if (OnClick.HasDelegate)
    {
        <Tag Color="@GetColor(text)" OnClick="OnClick">@text</Tag>
    }
    else
    {
        <Tag Color="@GetColor(text)">@text</Tag>
    }
}